home *** CD-ROM | disk | FTP | other *** search
- Path: news.gate.net!pslfl2-35
- From: bhutto@gate.net (William Hutto)
- Newsgroups: comp.lang.c
- Subject: Re: Problems with inline asm in Borland C
- Date: 21 Jan 1996 13:53:04 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4dtgg0$21r4@news.gate.net>
- References: <4dsn6j$snb@blaze.cs.jhu.edu>
- NNTP-Posting-Host: pslfl2-35.gate.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4dsn6j$snb@blaze.cs.jhu.edu>,
- vincie@circle.cs.jhu.edu (Michael Ko) spake:
- ;Keywords:
- ;I just have a quick question concerning using inline assembler operators
- ;in Borland C++ 3.0. I'm trying to plot pixels into the graphics memory
- ;area. However, the assembly code seems to alter either the code of the
- ;program or values in variables. I've removed the inline assembly and the
- ;code is fine (but doesn't plot, obviously). If I use inline codes,
- ;does Borland C automatically save registers and restore them after the
- ;asm codes? I assume that Borland C does not use the video memory for
- ;code and data segments. Thanks for any help.
-
- Inline assembly is a compiler specific subject. You need to consult your
- compiler documentation to find out whether/what regs need to be saved.
-
- Bill
-
- "Whatcha got on?...Your mind?"
-